#pragma once

#include <string>
#include <windows.h>

#ifdef  _UNICODE
#define TSTRING std::wstring
#else
#define TSTRING std::string
#endif

size_t xg_wchar2char( char* dst, size_t dst_size, const WCHAR* src, size_t src_size );
size_t xg_char2wchar( WCHAR* dst, size_t dst_size, const char* src, size_t src_size);

void xg_str2lower( TSTRING& szString );